﻿using B.S.BaseData.Domain;
using Microsoft.EntityFrameworkCore;

namespace B.S.BaseData.Infratructure
{
    /// <summary>
    /// 数据库上下文
    /// </summary>
    public class SCDbCotext : DbContext
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="options">options</param>
        public SCDbCotext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 主表
        /// </summary>
        public DbSet<Main> Mains { get; set; }
        /// <summary>
        /// 用户
        /// </summary>
        public DbSet<User> Users { get; set; }
        /// <summary>
        /// 用户角色表
        /// </summary>
        public DbSet<UserRole> UserRoles { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Roles { get; set; }
        /// <summary>
        /// 菜单表
        /// </summary>
        public DbSet<Menu> Menus { get; set; }
        /// <summary>
        /// 角色菜单表
        /// </summary>
        public DbSet<RoleMenu> RoleMenus { get; set; }
        /// <summary>
        /// 请假申请
        /// </summary>
        public DbSet<Leave> Leaves { get; set; }
        /// <summary>
        /// 实例表
        /// </summary>
        public DbSet<WF_Instafre> WF_Instaress { get; set; }
        /// <summary>
        /// 流程记录表
        /// </summary>
        public DbSet<WF_Recode> WF_Recodes { get; set; }
        /// <summary>
        /// 设置表
        /// </summary>
        public DbSet<WF_Setting> WF_Settings { get; set; }
    }
}
